"use client";

import { Shield, FileText, AlertCircle, Check } from "lucide-react";
import Link from "next/link";

export default function LicensePage() {
  return (
    <div className="container mx-auto py-16 px-4">
      {/* 页面标题 */}
      <div className="text-center mb-12">
        <div className="flex justify-center mb-4">
          <div className="bg-primary/10 p-4 rounded-full">
            <Shield className="w-12 h-12 text-primary" />
          </div>
        </div>
        <h1 className="text-4xl font-bold mb-4">MIT License (Modified)</h1>
        <p className="text-muted-foreground max-w-2xl mx-auto">
          心身同调·全维健康项目的使用许可协议
        </p>
      </div>

      {/* 许可证内容 */}
      <div className="max-w-3xl mx-auto space-y-8">
        {/* 版权声明 */}
        <div className="bg-card rounded-xl p-8 shadow-lg">
          <div className="flex items-start gap-4">
            <FileText className="w-6 h-6 text-primary flex-shrink-0 mt-1" />
            <div>
              <h2 className="text-xl font-semibold mb-4">版权声明</h2>
              <p className="text-muted-foreground">
                Copyright (c) 2024 zeroicey
              </p>
            </div>
          </div>
        </div>

        {/* 使用条款 */}
        <div className="bg-card rounded-xl p-8 shadow-lg">
          <div className="flex items-start gap-4">
            <AlertCircle className="w-6 h-6 text-primary flex-shrink-0 mt-1" />
            <div>
              <h2 className="text-xl font-semibold mb-4">使用条款</h2>
              <div className="space-y-4 text-muted-foreground">
                <p>
                  特此授权，允许在下列条件下使用、复制、修改、合并、出版发行、分发、再许可和/或销售本软件的副本：
                </p>
                <ul className="space-y-3">
                  <li className="flex items-start gap-2">
                    <Check className="w-5 h-5 text-green-500 flex-shrink-0 mt-0.5" />
                    <span>本软件仅限于获得zeroicey书面同意的用户使用。</span>
                  </li>
                  <li className="flex items-start gap-2">
                    <Check className="w-5 h-5 text-green-500 flex-shrink-0 mt-0.5" />
                    <span>所有使用、修改或分发本软件的行为，必须保留上述版权声明，并获得明确的书面授权。</span>
                  </li>
                  <li className="flex items-start gap-2">
                    <Check className="w-5 h-5 text-green-500 flex-shrink-0 mt-0.5" />
                    <span>本软件按"原样"提供，不附带任何明示或暗示的保证，包括但不限于适销性、适合特定用途或非侵权的保证。</span>
                  </li>
                </ul>
              </div>
            </div>
          </div>
        </div>

        {/* 警告提示 */}
        <div className="bg-destructive/10 rounded-xl p-8">
          <p className="text-destructive text-center font-medium">
            未经授权的任何使用、复制或分发行为均为非法，并可能导致法律追诉。
          </p>
        </div>

        {/* 联系方式 */}
        <div className="text-center">
          <p className="text-muted-foreground mb-4">
            如需获取使用授权或了解更多信息，请联系我们
          </p>
          <Link
            href="/contact"
            className="inline-flex items-center gap-2 bg-primary text-primary-foreground px-6 py-3 rounded-full hover:bg-primary/90 transition-all transform hover:scale-105 shadow-lg"
          >
            联系我们
          </Link>
        </div>
      </div>
    </div>
  );
}
